package com.schoolcloud.share.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 视频分类多对多关联
 * @TableName video_categories
 */
@TableName(value ="video_categories")
@Data
public class VideoCategories implements Serializable {
    /**
     * 关联ID
     */
    @TableId(value = "video_category_id", type = IdType.AUTO)
    private Integer videoCategoryId;

    /**
     * 视频ID
     */
    @TableField(value = "video_id")
    private Integer videoId;

    /**
     * 分类ID
     */
    @TableField(value = "category_id")
    private Integer categoryId;

    /**
     * 是否主分类
     */
    @TableField(value = "is_primary")
    private Integer isPrimary;

    /**
     * 关联时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
